#ifndef __STORMWIDGET_CONFIGMANAGE_CWINNETGETHOST_WINNETGETHOST_H
#define __STORMWIDGET_CONFIGMANAGE_CWINNETGETHOST_WINNETGETHOST_H

#include "CommonDefine.h"
#include <string>
#pragma comment(lib, "Iphlpapi")
#pragma comment(lib, "ws2_32")

class CWinNetGetHost
{
public:
	CWinNetGetHost(void);
	virtual ~CWinNetGetHost(void);
	HOSTLIST g_vHostList;
	hostent* gethostbyname(const char* name);
	void CopyHostentStruct(hostent* pSrc,hostent* pDst);
	void DeleteHostentStruct(hostent* pHost);
	void RealGet(const char* name,HostST &host);
};
#endif //__STORMWIDGET_CONFIGMANAGE_CWINNETGETHOST_WINNETGETHOST_H